#pragma once

#include <QTcpServer>

class TcpServer : public QTcpServer
{
	Q_OBJECT

public:
	TcpServer(int tcpPort,QObject *parent);
	~TcpServer();

	bool run();

protected:
	void incomingConnection(qintptr socketDescriptor) override;

private:

private:
	int m_tcpPort;

private slots:
	void onReadyRead();

signals:
	void signalTcpMsgData(QByteArray& arr);
};
